<!--{template admin/header}-->
<body id="homepage">
    <div id="breadcrumb">
        <ul>
            <li><img src="static/img/icons/icon_breadcrumb.png"
                     alt="Location" /></li>
            <li><strong>位置:</strong></li>
            <li><a href="admin.php">主页</a> - LBS</li>
        </ul>
    </div>
    <div id="rightside">
        <div class="contentcontainer">
            <div class="headings altheading">
                <h2>LBS列表</h2>
            </div>
            <div class="contentbox">
                <div class="extrabottom">
                注意:查找某个用户需要填上uid,查找某地区的只需填其中一个,越多越精确.经度和纬度没有做模糊查找.
                    <form method="get" action="admin.php">
        UID:<input type="text" name="uid" value="$_GET[uid]" style="width:80px;" class="inputbox smallbox"  />
                        省份:<input type="text" name="province" value="$_GET[province]" style="width:80px;" class="inputbox smallbox" /> 
                        城市:<input type="text" name="city" value="$_GET[city]" style="width:80px;" class="inputbox smallbox" />
                        地区:<input type="text" name="region" value="$_GET[region]" style="width:100px;" class="inputbox smallbox" /> 
                        经度:<input type="text" name="longitude" value="$_GET[longitude]" style="width:90px;" class="inputbox smallbox" /> 
                        纬度:<input type="text" name="latitude" value="$_GET[latitude]" style="width:90px;" class="inputbox smallbox" /> 
                       <select name="op">
                            <option value="getLbsByUser">查找用户</option>
                            <option value="geLbsByDiary">查找日志</option>
                        </select>
                        <select name="perpage">
                            <option value="20"$perpages[20]>每页显示20个</option>
                            <option value="50"$perpages[50]>每页显示50个</option>
                            <option value="100"$perpages[100]>每页显示100个</option>
                        </select>
              <input type="submit" value="查找相同位置" class="btn" /> 
              <input type="hidden" name="ac" value="lbs" />
                        <a href="admin.php?ac=lbs" class="btn">清空条件</a>
                    </form>
                </div>
                <div style="clear: both;"></div>
                <table width="100%">
                    <thead>
                        <tr>
                            <th>用户名</th>
                            <th>日志标题</th>
                            <th>省份</th>
                            <th>城市</th>
                            <th>地区</th>
                            <th>地址</th>	
                            <th>经度</th>
                            <th>纬度</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <!--{eval $i=0;}-->
                        <!--{loop $list $value}-->
                        <!--{eval $i++;}-->
                        <tr <!--{eval echo showRowHilite($i); }--> >
                            <td><a href="admin.php?ac=user&uid={$value[uid]}"
                               title="{$value[nickName]}" target="_blank">{$value[nickName]}</a></td>
                            <td>
                            	<a href="admin.php?ac=diary&op=getDiaryInfoWithCommentReply&uid={$value[uid]}&bodyId={$value[bodyId]}"
                                    title="<!--{eval echo shtmlspecialchars($value[detail][abbreviation]);}-->" target="_blank">{$value[diaryInfo][title]}
                                   </a>
                            	</td>
                            <td>
                                {$value[province]}
                            	</td>
                            <td>
                                {$value[city]}
                            	</td>
                            <td>
                            	{$value[region]}
                            	</td>
                            <td>
                                {$value[address]}
                            	</td>
                            <td>
                            	{$value[longitude]}
                            	</td>
                            <td>
                            	{$value[latitude]}
                            	</td>
                            <td><a href="admin.php?ac=user&uid={$value[uid]}" target="_blank">
                            	<img src="static/img/icons/gif_people.gif" width="24" height="24" /></a> 
                            	</td>
                        </tr>
                        <!--{/loop}-->
                    </tbody>
                </table>
                <div class="extrabottom">
                    <ul>
                        <li><img src="static/img/icons/gif_people.gif" />作者信息</li>
                        <li><img src="static/img/icons/gif_delete.gif" /> 删除LBS</li>
                    </ul>
                    <div class="bulkactions">
                        <ul class="pagination">
                            <!--{if $prevpurl!=''}-->
                            <li class="text"><a href="{$firstpurl}" title="">第一页</a></li>
                            <li class="text"><a href="{$prevpurl}" title="">上一页</a></li>
                            <!--{/if}-->
                            <li class="text"><a href="{$nextpurl}" title="">下一页</a></li>
                        </ul>
                        <div style="clear: both;"></div>
                    </div>
                </div>
                <div style="clear: both;"></div>
            </div>
        </div>
    </div>
    <!--{template admin/leftside}-->
    <!--{template admin/footer}-->